Part Number Hot Search : 
1051A2 G1C472M MPC56 DBF60G LM431CIM ADG836 BZX84B12 B1100
Product Description
Full Text Search
 

To Download DS18S20-SLTAMPR Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 23 features ? unique 1 - wire ? interface requires only one port pin for communication ? each device has a unique 64 - bit serial code stored in an on - board rom ? multidrop capability simplifies distributed temperature sensing applications ? requires no ext ernal components ? can be powered f rom data line. power supply range is 3.0v to 5.5v ? measures temperatures from - 55c to +125c ( - 67f to +257f) ? 0.5 c accuracy from - 10c to +85c ? 9- bit thermometer resolution ? converts temperature in 750ms (max) ? user - defi nable nonvolatile (nv) alarm settings ? alarm search command identifies and addresses devices whose temperature is outside programmed limits (temperature alarm condition) ? applications include thermostatic controls, industrial systems, consumer products, ther mometers, or any thermally sensitive system pin configurations description the ds18s20 digital thermometer provides 9 - bit celsius temperature measurements and has an alarm function with nonvolatile user - programmable upper and lower trigger points. the ds18s20 communicates over a 1 - wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor. it has an operating temperature range of ? 55c to +125c and is accurate to 0.5 c over the range of ? 10c to +85c . in addition, the ds18s20 can derive power directly from the data line (?parasite power?), eliminating the need for an external power supply. each ds18s20 has a unique 64 - bit serial code, which allows multiple ds18s20s to function on the same 1- wire bus. thus, it is simple to use one microprocessor to control many ds18s20s distributed over a large area. applications that can benefit from this feature include hvac environmental controls, temperature monitoring systems ins ide buildings, equipment, or machinery, and process monitoring and control systems. 1 - wire is a registered trademark of maxim integrated products, inc. to - 92 (ds18s20) 1 (bottom view) 2 3 m axim ds1820 1 gnd dq v dd 2 3 so (150 mils) (ds18s20z) n.c . n.c. n.c. n.c. gnd dq v dd n.c. 6 8 7 5 3 1 2 4 ds1820 19 - 5474; rev 8/10 ds18s20 high - precision 1 - wire digital thermometer
ds18s20 2 of 23 ordering information part temp range pin - package ds18s20 ? 55c to +125c 3 to - 92 ds18s20+ ? 55c to +125c 3 to - 92 ds18s20/t&r ? 55c to +125c 3 to - 92 (2000 piece) d s18s20+t&r ? 55c to +125c 3 to - 92 (2000 piece) ds18s20 - sl/t&r ? 55c to +125c 3 to - 92 (2000 piece)* ds18s20 - sl+t&r ? 55c to +125c 3 to - 92 (2000 piece)* ds18s20z ? 55c to +125c 8 so ds18s20z+ ? 55c to +125c 8 so ds18s20z/t&r ? 55c to +125c 8 so (2500 piece) ds18s20z+t&r ? 55c to +125c 8 so (2500 piece) + denotes a lead (pb) - free /rohs - compliant package. a ?+? appear s on the top mark of lead (pb) - free packages. t&r = tape and reel. * to - 92 packages in tape and reel can be ordered with stra ight or formed leads. choose ?sl? for straight leads. bulk to - 92 orders are straight leads only. pin description pin name function to - 92 so 1 5 gnd ground 2 4 dq data input/output. open - drain 1 - wire interface pin. also provides power to the device w hen used in parasite power mode (see the powering the ds18s20 section.) 3 3 v dd optional v dd . v dd must be grounded for operation in parasite power mode. ? 1, 2, 6, 7, 8 n.c. no connection overview figure 1 shows a block diagra m of the ds18s20, and pin descriptions are given in the pin description table. the 64 - bit rom stores the device?s unique serial code. the scratchpad memory contains the 2 - byte temperature register that stores the digital output from the temperature sensor. in addition, the scratchpad provides access to the 1 - byte upper and lower alarm trigger registers (t h and t l ). the t h and t l registers are nonvolatile (eeprom), so they will retain data when the device is powered down. the ds18s20 uses maxim?s exclusive 1- wire bus protocol that implements bus communication using one control signal. the control line requires a weak pullup resistor since all devices are linked to the bus via a 3 - state or open - drain port (the dq pin in the case of the ds18s20). in this bus sy stem, the microprocessor (the master device) identifies and addresses devices on the bus using each device?s unique 64- bit code. because each device has a unique code, the number of devices that can be addressed on one bus is virtually unlimited. the 1- wi re bus protocol, including detailed explanations of the commands and ?time slots,? is covered in the 1- wire bus system section. another feature of the ds18s20 is the ability to operate without an external power supply. power is instead supplied through the 1- wire pullup resistor via the dq pin when the bus is high. the high bus signal also charges an internal capacitor (c pp ), which then supplies power to the device when the bus is low. this method of deriving power from the 1- wire bus is referred to as ?par asite power.? as an alternative, the ds18s20 may also be powered by an external supply on v dd .
ds18s20 3 of 23 figure 1 . ds18s20 block diagram operation ? measuring temperature the core functionality of the ds18s20 is its direct - to - digital temperature sensor. the temperature sensor output has 9 - bit resolution, which corresponds to 0.5 c steps. the ds18s20 powers - up in a low - power idle state; to initiate a temperature measurement and a - to - d conversion, the master must issue a conve rt t [44h] command. following the conversion, the resulting thermal data is stored in the 2 - byte temperature register in the scratchpad memory and the ds18s20 returns to its idle state. if the ds18s20 is powered by an external supply, the master can issue ?read - time slots? (see the 1- wire bus system section) after the convert t command and the ds18s20 will respond by transmitting 0 while the temperature conversion is in progress and 1 when the conversion is done. if the ds18s20 is powered with parasite powe r, this notification technique cannot be used since the bus must be pulled high by a strong pullup during the entire temperature conversion. the bus requirements for parasite power are explained in detail in the powering the ds18s20 section. the ds18s20 o utput data is calibrated in degrees centigrade; for fahrenheit applications, a lookup table or conversion routine must be used. the temperature data is stored as a 16 - bit sign - extended two?s complement number in the temperature register (see figure 2 ). the sign bits (s) indicate if the temperature is positive or negative: for positive numbers s = 0 and for negative numbers s = 1. table 1 gives examples of digital output data and the corresponding temperatu re reading. resolutions greater than 9 bits can be calculated using the data from the temperature, count remain and count per c registers in the scratchpad. note that the count per c register is hard - wired to 16 (10h). after reading the scratchpad, the temp_read value is obtained by truncating the 0.5 c bit (bit 0) from the temperature data (see figure 2 ). the extended resolution temperature can then be calculated using the following equation: c per count remain count c per count read temp e temperatur _ _ _ _ _ 25 . 0 _ ? + ? = v pu 4.7k power - supply sense 64 - bit rom and 1 - wire port dq v dd internal v dd c pp parasite power circuit memory control logic scratchpad 8 - bit crc generator temperature sensor alarm high trigger (t h ) register (eeprom) alarm low trigger (t l ) register (eeprom) gnd ds18s20
ds18s20 4 of 23 figure 2 . temperature register format bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ls byte 2 6 2 5 2 4 2 3 2 2 2 1 2 0 2 -1 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 ms byte s s s s s s s s s = sign table 1 . temperature/data relationship temperature ( c) digital output (binary) digital output (hex) +85.0* 0000 0000 1010 1010 00aah +25.0 0000 0000 0011 0010 0032h +0.5 0000 0000 0000 0001 0001h 0 0000 0000 0000 0000 0000h - 0.5 1111 1111 1111 1111 ffffh - 25.0 1111 1111 1100 1110 ffceh - 55.0 1111 1111 1001 0010 ff92h * the power - on reset value of the temperature register is +85c. operation ? alarm signaling after the ds18s20 performs a temperature conversion, the temperature value is compared to t he user - defined two?s complement alarm trigger values stored in the 1 - byte t h and t l registers (see figure 3). the sign bit (s) indicates if the value is positive or negative: for positive numbers s = 0 and for negative numbers s = 1 . the t h and t l registers are nonvolatile (eeprom) so they will retain data when the device is powered down. t h and t l can be accessed through bytes 2 and 3 of the scratchpad as explained in the memory section. figure 3 . t h and t l register format bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 s 2 6 2 5 2 5 2 5 2 2 2 1 2 0 only bits 8 through 1 of the temperature register are used in the t h and t l comparison since t h and t l are 8 - bit registers. if the measured temperature is lower t han or equal to t l or higher than t h , an alarm condition exists and an alarm flag is set inside the ds18s20. this flag is updated after every temperature measurement; therefore, if the alarm condition goes away, the flag will be turned off after the next t emperature conversion. the master device can check the alarm flag status of all ds18s20s on the bus by issuing an alarm search [ech] command. any ds18s20s with a set alarm flag will respond to the command, so the master can determine exactly which ds18s20 s have experienced an alarm condition. if an alarm condition exists and the t h or t l settings have changed, another temperature conversion should be done to validate the alarm condition.
ds18s20 5 of 23 powering the ds18s20 the ds18s20 can be powered by an external suppl y on the v dd pin, or it can operate in ?parasite power? mode, which allows the ds18s20 to function without a local external supply. parasite power is very useful for applications that require remote temperature sensing or th ose with space constr ain ts . figure 1 shows the ds18s20?s parasite - power control circuitry, which ?steals? power from the 1- wire bus via the dq pin when the bus is high. the stolen charge powers the ds18s20 while the bus is high, and some of the char ge is stored on the parasite power capacitor (c pp ) to provide power when the bus is low. when the ds18s20 is used in parasite power mode, the v dd pin must be connected to ground. in parasite power mode, the 1- wire bus and c pp can provide sufficient curre nt to the ds18s20 for most operations as long as the specified timing and voltage requirements are met (see the dc electrical characteristics and the ac electrical characteristics ). however, when the ds18s20 is performing temperature conversions or copying data from the scratchpad memory to eeprom, the operating current can be as high as 1.5ma. this current can cause an unacceptable voltage drop across the weak 1- wire pullup resistor and is more current than can be supplied by c pp . to assure that the ds18s2 0 has sufficient supply current, it is necessary to provide a strong pullup on the 1- wire bus whenever temperature conversions are taking place or data is being copied from the scratchpad to eeprom. this can be accomplished by using a mosfet to pull the bu s directly to the rail as shown in figure 4 . the 1- wire bus must be switched to the strong pullup within 10 s (max) after a convert t [44h] or copy scratchpad [48h] command is issued, and the bus must be held high by the pullup for the duration of the conversion (t conv ) or data transfer (t wr = 10ms). no other activity can take place on the 1- wire bus while the pullup is enabled. the ds18s20 can also be powered by the conventional method of connecting an external power supply to the v dd pin, as shown in figure 5 . the advantage of this method is that the mosfet pullup is not required, an d the 1- wire bus is free to carry other traffic during the temperature conversion time. the use of parasite power is not recommended for temperatures above 100 c since the ds18s20 may not be able to sustain communications due to the higher leakage currents that can exist at these temperatures. for applications in which such temperatures are likely, it is strongly recommended that the ds18s20 be powered by an ext ernal power supply. in some situations the bus master may not know whether the ds18s20s on the bus are parasite powered or powered by external supplies. the master needs this information to determine if the strong bus pullup should be used during temperat ure conversions. to get this information, the master can issue a skip rom [cch] command followed by a read power supply [ b4h ] command followed by a ?read - time slot?. during the read - time slot, parasite powered ds18s20s will pull the bus low, and externally powered ds18s20s will let the bus remain high. if the bus is pulled low, the master knows that it must supply the strong pullup on the 1- wire bus during temperature conversions.
ds18s20 6 of 23 figure 4 . supplying the parasite - powered ds18s20 du ring temperature conversions figure 5 . powering the ds18s20 with an external supply 64- bit lasered rom code each ds18s20 contains a unique 64 - bit code (see figure 6 ) stored in r om. the least significant 8 bits of the rom code contain the ds18s20?s 1- wire family code: 10h. the next 48 bits contain a unique serial number. the most significant 8 bits contain a cyclic redundancy check (crc) byte that is calculated from the first 56 b its of the rom code. a detailed explanation of the crc bits is provided in the crc generation section. the 64 - bit rom code and associated rom function control logic allow the ds18s20 to operate as a 1- wire device using the protocol detailed in the 1- wire b us system section. figure 6 . 64 - bit lasered rom code 8 - bit crc 48 - bit serial number 8 - bit family code (10h) v pu v pu 4.7k 1 - wire bus p ds18s20 gnd v dd dq to other 1 - wire devices v dd (external supply) ds18s20 gnd v dd dq v pu 4.7k to other 1 - wire devices 1 - wire bus p msb msb lsb lsb lsb msb
ds18s20 7 of 23 memory the ds18s20?s memory is organized as shown in figure 7 . the memory consists of an s ram scratchpad with nonvolatile eeprom storage for the high and low alarm trigger registers (t h and t l ). note that if the ds18s20 alarm function is not used, the t h and t l registers can serve as general - purpose memory. all memory commands are described in detail in the ds18s20 function commands section. byte 0 and byte 1 of the scratchpad contain the lsb and the msb of the temperature register, respectively. these bytes are read - only. bytes 2 and 3 provide access to t h and t l registers. bytes 4 and 5 are re served for internal use by the device and cannot be overwritten; these bytes will return all 1s when read. bytes 6 and 7 contain the count remain and count per oc registers, which can be used to calculate extended resolution results as explained in the ope ration ? measuring temperature section. byte 8 of the scratchpad is read - only and contains the crc code for bytes 0 through 7 of the scratchpad. the ds18s20 generates this crc using the method described in the crc generation section. data is written to byte s 2 and 3 of the scratchpad using the write scratchpad [4eh] command; the data must be transmitted to the ds18s20 starting with the least significant bit of byte 2. to verify data integrity, the scratchpad can be read (using the read scratchpad [beh] comma nd) after the data is written. when reading the scratchpad, data is transferred over the 1 - wire bus starting with the least significant bit of byte 0. to transfer the t h and t l data from the scratchpad to eeprom, the master must issue the copy scratchpad [ 48h] command. data in the eeprom registers is retained when the device is powered down; at power - up the eeprom data is reloaded into the corresponding scratchpad locations. data can also be reloaded from eeprom to the scratchpad at any time using the reca ll e 2 [b8h] command. the master can issue ?read - time slots? (see the 1- wire bus system section) following the recall e 2 command and the ds18s20 will indicate the status of the recall by transmitting 0 while the recall is in progress and 1 when the recall i s done. figure 7 . ds18s20 memory map scratchpad (power - up state) byte 0 temperature lsb (aah) byte 1 temperature msb (00h) eeprom byte 2 t h register or user byte 1* t h register or user byte 1 byte 3 t l register or u ser byte 2* t l register or user byte 2 byte 4 reserved (ffh) byte 5 reserved (ffh) byte 6 count remain (0ch) byte 7 count per c (10h) byte 8 crc* * power - up state depends on value(s) stored in eeprom. (85c)
ds18s20 8 of 23 crc generation crc bytes are provide d as part of the ds18s20?s 64 - bit rom code and in the 9th byte of the scratchpad memory. the rom code crc is calculated from the first 56 bits of the rom code and is contained in the most significant byte of the rom. the scratchpad crc is calculated from t he data stored in the scratchpad, and therefore it changes when the data in the scratchpad changes. the crcs provide the bus master with a method of data validation when data is read from the ds18s20. to verify that data has been read correctly, the bus ma ster must re - calculate the crc from the received data and then compare this value to either the rom code crc (for rom reads) or to the scratchpad crc (for scratchpad reads). if the calculated crc matches the read crc, the data has been received error free. the comparison of crc values and the decision to continue with an operation are determined entirely by the bus master. there is no circuitry inside the ds18s20 that prevents a command sequence from proceeding if the ds18s20 crc (rom or scratchpad) does no t match the value generated by the bus master. the equivalent polynomial function of the crc (rom or scratchpad) is: crc = x 8 + x 5 + x 4 + 1 the bus master can re - calculate the crc and compare it to the crc values from the ds18s20 using the polynomial gene rator shown in figure 8 . this circuit consists of a shift register and xor gates, and the shift register bits are initialized to 0. starting with the least significant bit of the rom code or the least significant bit of byte 0 in the scratchpad, one bit at a time should shifted into the shift register. after shifting in the 56th bit from the rom or the most significant bit of byte 7 from the scratchpad, the polynomial generator will contain the re - calculated crc. next, the 8 - bit ro m code or scratchpad crc from the ds18s20 must be shifted into the circuit. at this point, if the re - calculated crc was correct, the shift register will contain all 0s. additional information about the maxim 1- wire cyclic redundancy check is available in a pplication note 27: understanding and using cyclic redundancy checks with maxim i button products. figure 8 . crc generator (msb) (lsb) xor xor xor input
ds18s20 9 of 23 1 - wire bus system the 1- wire bus system uses a single bus master to control one or more slave dev ices. the ds18s20 is always a slave. when there is only one slave on the bus, the system is referred to as a ?single - drop? system; the system is ?multidrop? if there are multiple slaves on the bus. all data and commands are transmitted least significant b it first over the 1- wire bus. the following discussion of the 1- wire bus system is broken down into three topics: hardware configuration, transaction sequence, and 1- wire signaling (signal types and timing). hardware configuration the 1- wire bus has by de finition only a single data line. each device (master or slave) interfaces to the data line via an open drain or 3 - state port. this allows each device to ?release? the data line when the device is not transmitting data so the bus is available for use by an other device. the 1- wire port of the ds18s20 (the dq pin) is open drain with an internal circuit equivalent to that shown in figure 9. the 1- wire bus requires an external pullup resistor of approximately 5k ? ; thus, the idle state for the 1- wire bus is high. if for any reason a transaction needs to be suspended, the bus must be left in the idle state if the transaction is to resume. infinite recovery time can occur between bits so long as the 1- wire bus is i n the inactive (high) state during the recovery period. if the bus is held low for more than 480 s, all components on the bus will be reset. figure 9 . hardware configuration v pu 4.7k 5a typ rx tx ds18s20 1 - w ire port 100 ? mosfet tx rx rx = receive tx = transmit 1 - wire bus dq p in
ds18s20 10 of 23 transaction sequence the transaction se quence for accessing the ds18s20 is as follows: step 1. initialization step 2. rom command (followed by any required data exchange) step 3. ds18s20 function command (followed by any required data exchange) it is very important to follow this sequence every time the ds18s20 is accessed, as the ds18s20 will not respond if any steps in the sequence are missing or out of order. exceptions to this rule are the search rom [f0h] and alarm search [ech] commands. after issuing either of these rom commands, the maste r must return to step 1 in the sequence. initialization all transactions on the 1- wire bus begin with an initialization sequence. the initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse(s) transmitt ed by the slave(s). the presence pulse lets the bus master know that slave devices (such as the ds18s20) are on the bus and are ready to operate. timing for the reset and presence pulses is detailed in the 1- wire signaling section. rom commands after the bus master has detected a presence pulse, it can issue a rom command. these commands operate on the unique 64 - bit rom codes of each slave device and allow the master to single out a specific device if many are present on the 1- wire bus. these commands also allow the master to determine how many and what types of devices are present on the bus or if any device has experienced an alarm condition. there are five rom commands, and each command is 8 bits long. the master device must issue an appropriate rom com mand before issuing a ds18s20 function command. a flowchart for operation of the rom commands is shown in figure 14. search rom [f0h] when a system is initially powered up, the master must identify the rom codes of all slave devi ces on the bus, which allows the master to determine the number of slaves and their device types. the master learns the rom codes through a process of elimination that requires the master to perform a search rom cycle (i.e., search rom command followed by data exchange) as many times as necessary to identify all of the slave devices. if there is only one slave on the bus, the simpler read rom command (see below) can be used in place of the search rom process. for a detailed explanation of the search rom pro cedure, refer to the i button ? book of standards at www.maxim - ic.com/ibuttonbook . after every search rom cycle, the bus master must return to step 1 (initialization) in the transaction sequence. read rom [33h] this command can only be used when there is one slave on the bus. it allows the bus master to read the slave?s 64 - bit rom code without using the search rom procedure. if this command is used when there is more than one slave present on the bus, a d ata collision will occur when all the slaves attempt to respond at the same time. match rom [55h] the match rom command followed by a 64 - bit rom code sequence allows the bus master to address a specific slave device on a multidrop or single - drop bus. onl y the slave that exactly matches the 64 - bit rom code sequence will respond to the function command issued by the master; all other slaves on the bus will wait for a reset pulse. i button is a registered trademark of maxim integrated products, inc.
ds18s20 11 of 23 skip rom [cch] the master can use this command to address all devices on th e bus simultaneously without sending out any rom code information. for example, the master can make all ds18s20s on the bus perform simultaneous temperature conversions by issuing a skip rom command followed by a convert t [44h] command. note that the rea d scratchpad [beh] command can follow the skip rom command only if there is a single slave device on the bus. in this case, time is saved by allowing the master to read from the slave without sending the device?s 64 - bit rom code. a skip rom command followe d by a read scratchpad command will cause a data collision on the bus if there is more than one slave since multiple devices will attempt to transmit data simultaneously. alarm search [ech] the operation of this command is identical to the operation of t he search rom command except that only slaves with a set alarm flag will respond. this command allows the master device to determine if any ds18s20s experienced an alarm condition during the most recent temperature conversion. after every alarm search cycl e (i.e., alarm search command followed by data exchange), the bus master must return to step 1 (initialization) in the transaction sequence. see the operation ? alarm signaling section for an explanation of alarm flag operation. ds18s20 function commands a fter the bus master has used a rom command to address the ds18s20 with which it wishes to communicate, the master can issue one of the ds18s20 function commands. these commands allow the master to write to and read from the ds18s20?s scratchpad memory, ini tiate temperature conversions and determine the power supply mode. the ds18s20 function commands, which are described below, are summarized in table 2 and illustrated by the flowchart in figure 15. conve rt t [44h] this command initiates a single temperature conversion. following the conversion, the resulting thermal data is stored in the 2 - byte temperature register in the scratchpad memory and the ds18s20 returns to its low - power idle state. if the device is being used in parasite power mode, within 10 s (max) after this command is issued the master must enable a strong pullup on the 1- wire bus for the duration of the conversion (t conv ) as described in the powering the ds18s20 section. if the ds18s20 is po wered by an external supply, the master can issue read - time slots after the convert t command and the ds18s20 will respond by transmitting 0 while the temperature conversion is in progress and 1 when the conversion is done. in parasite power mode this noti fication technique cannot be used since the bus is pulled high by the strong pullup during the conversion. write scratchpad [4eh] this command allows the master to write 2 bytes of data to the ds18s20?s scratchpad. the first byte is written into the t h re gister (byte 2 of the scratchpad), and the second byte is written into the t l register (byte 3 of the scratchpad). data must be transmitted least significant bit first. both bytes must be written before the master issues a reset, or the data may be corrupt ed. read scratchpad [beh] this command allows the master to read the contents of the scratchpad. the data transfer starts with the least significant bit of byte 0 and continues through the scratchpad until the 9th byte (byte 8 ? crc) is read. the master may issue a reset to terminate reading at any time if only part of the scratchpad data is needed.
ds18s20 12 of 23 copy scratchpad [48h] this command copies the contents of the scratchpad t h and t l registers (bytes 2 and 3) to eeprom. if the device is being used in parasi te power mode, within 10 s (max) after this command is issued the master must enable a strong pullup on the 1- wire bus for at least 10ms as described in the powering the ds18s20 section. recall e 2 [b8h] this command recalls the alarm trigger values (t h an d t l ) from eeprom and places the data in bytes 2 and 3, respectively, in the scratchpad memory. the master device can issue read - time slots following the recall e 2 command and the ds18s20 will indicate the status of the recall by transmitting 0 while the r ecall is in progress and 1 when the recall is done. the recall operation happens automatically at power - up, so valid data is available in the scratchpad as soon as power is applied to the device. read power supply [b4h] the master device issues this comman d followed by a read - time slot to determine if any ds18s20s on the bus are using parasite power. during the read - time slot, parasite powered ds18s20s will pull the bus low, and externally powered ds18s20s will let the bus remain high. see the powering the ds18s20 section for usage information for this command. table 2 . ds18s20 function command set command description protocol 1 - wire bus activity after command is issued notes temperature conversion commands convert t initiates tempe rature conversion. 44h ds18s20 transmits conversion status to master (not applicable for parasite - powered ds18s20s). 1 memory commands read scratchpad reads the entire scratchpad including the crc byte. beh ds18s20 transmits up to 9 data bytes to master. 2 write scratchpad writes data into scratchpad bytes 2 and 3 (t h and t l ). 4eh master transmits 2 data bytes to ds18s20. 3 copy scratchpad copies t h and t l data from the scratchpad to eeprom. 48h none 1 recall e 2 recalls t h and t l data from eeprom to th e scratchpad. b8h ds18s20 transmits recall status to master. read power supply signals ds18s20 power supply mode to the master. b4h ds18s20 transmits supply status to master. note 1: for parasite - powered ds18s20s, the master must enable a strong pullu p on the 1 - wire bus during temperature conversions and copies from the scratchpad to eeprom. no other bus activity may take place during this time. note 2: the master can interrupt the transmission of data at any time by issuing a reset. note 3: both byt es must be written before a reset is issued.
ds18s20 13 of 23 1 - wire signaling the ds18s20 uses a strict 1- wire communication protocol to ensure data integrity. several signal types are defined by this protocol: reset pulse, presence pulse, write 0, write 1, read 0, and read 1. all these signals, with the exception of the presence pulse, are initiated by the bus master. initialization procedure ? reset and presence pulses all communication with the ds18s20 begins with an initialization sequence that consists of a reset pul se from the master followed by a presence pulse from the ds18s20. this is illustrated in figure 10 . when the ds18s20 sends the presence pulse in response to the reset, it is indicating to the master that it is on the bus and ready to operate. during the initialization sequence the bus master transmits (t x ) the reset pulse by pulling the 1- wire bus low for a minimum of 480 s. the bus master then releases the bus and goes into receive mode (r x ). when the bus is released, the 5k ? pul lup resistor pulls the 1- wire bus high. when the ds18s20 detects this rising edge, it waits 15 s to 60 s and then transmits a presence pulse by pulling the 1- wire bus low for 60 s to 240 s. figure 10 . initialization timing read/write time slots the bus master writes data to the ds18s20 during write time slots and reads data from the ds18s20 during read - time slots. one bit of data is transmitted over the 1- wire bus per time slot. write time slots there are two typ es of write time slots: ?write 1? time slots and ?write 0? time slots. the bus master uses a write 1 time slot to write a logic 1 to the ds18s20 and a write 0 time slot to write a logic 0 to the ds18s20. all write time slots must be a minimum of 60 s in duration with a minimum of a 1 s recovery time between individual write slots. both types of write time slots are initiated by the master pulling the 1- wire bus low (see figure 11). to generate a write 1 time slot, after pul ling the 1 - wire bus low, the bus master must release the 1- wire bus within 15 s. when the bus is released, the 5k ? pullup resistor will pull the bus high. to generate a write 0 time slot, after pulling the 1- wire bus low, the bus master must continue to ho ld the bus low for the duration of the time slot (at least 60 s). the ds18s20 samples the 1- wire bus during a window that lasts from 15 s to 60 s after the master initiates the write time slot. if the bus is high during the sampling window, a 1 is written to the ds18s20. if the line is low, a 0 is written to the ds18s20. line type legend bus master pulling low ds18s20 pulling low resistor pullup v pu gnd 1 - wire bus 480 s minimum 480 s minimum ds18s20 t x presence pulse 60- 240 s master t x reset pulse master r x ds18s20 waits 15 - 60 s
ds18s20 14 of 23 read - time slots the ds18s20 can only transmit data to the master when the master issues read - time slots. therefore, the master must generate read - time slots immediately after issuing a read scratchpad [beh] or read power supply [ b4h ] command, so that the ds18s20 can provide the requested data. in addition, the master can generate read - time slots after issuing convert t [44h] or recall e 2 [b8h] commands to find out the status of the operation as explained in the ds18s20 function commands section. all read - time slots must be a minimum of 60 s in duration with a minimum of a 1 s recovery time between slots. a read - time slot is initiated by the master device pulling the 1- wire bus low for a mini mum of 1 s and then releasing the bus (see figure 11 ). after the master initiates the read - time slot, the ds18s20 will begin transmitting a 1 or 0 on bus. the ds18s20 transmits a 1 by leaving the bus high and transmits a 0 by pull ing the bus low. when transmitting a 0, the ds18s20 will release the bus by the end of the time slot, and the bus will be pulled back to its high idle state by the pullup resister. output data from the ds18s20 is valid for 15 s after the falling edge that initiated the read - time slot. therefore, the master must release the bus and then sample the bus state within 15 s from the start of the slot. figure 12 illustrates that the sum of t init , t rc , and t sample must be less than 15 s f or a read - time slot. figure 13 shows that system timing margin is maximized by keeping t init and t rc as short as possible and by locating the master sample time during read - time slots towards the end of the 15 s period. figure 11 . read/write time slot timing diagram 45 s 15 s v pu gnd 1 - wire bus 60 s < t x ?0? < 120 s 1 s < t rec < ds18s20 samples min typ max 15 s 30 s > 1 s master write ?0? slot master write ?1? slot v pu gnd 1 - wire bus 15 s master read ?0? slot master read ?1? slot master samples master samples start of slot start of slot > 1 s 1 s < t rec < 15 s 15 s 30 s 15 s ds18s20 samples min typ max > 1 s line type legend bus master pulling low ds18s20 pulling low re sistor pullup
ds18s20 15 of 23 figure 12 . detailed master read 1 timing figure 13 . recommended master read 1 timing v pu gnd 1 - wire bus 15 s vih of master t rc t int > 1 s master samples line type legend bus master pulling low resistor pullup v pu gnd 1 - wire bus 15 s vih of master t rc = small t int = small master samples
ds18s20 16 of 23 figure 14. rom commands flowchart cch skip rom command master t x reset pulse ds18s20 t x presence pulse master t x rom command 33h read rom command 55h match rom command f0h search rom command ech alarm search command master t x bit 0 ds18s20 t x bit 0 ds18s20 t x bit 0 master t x b it 0 bit 0 match? master t x bit 1 bit 1 match? bit 63 match? master t x bit 63 n y y y y y n n n n n n n y y y ds18s20 t x bit 1 ds18s20 t x bit 1 master t x b it 1 ds18s20 t x bit 63 ds18s20 t x bit 63 master t x b it 63 bit 0 match? bit 1 match? bit 63 match? n n n y y y ds18s20 t x family code 1 byte ds18s20 t x serial number 6 bytes ds18s20 t x crc byte ds18s20 t x bit 0 ds18s20 t x bit 0 master t x b it 0 n y device(s) with alarm flag set? initialization sequence master t x function command (figure 15)
ds18s20 17 of 23 figure 15 . ds18s20 function commands flowchart master t x function command y n 44h convert temperature ? parasite power ? n y ds18s20 begins conversion device converting temperature ? n y master r x ?0s? master r x ?1s? master enables strong pullup on dq ds18s20 converts temperature master disables strong pullup y n 48h copy scratchpad ? parasite power ? n y master enables strong pull - up on dq data copied from scratchpad to eeprom master disables strong pullup master r x ?0s? copy in progress ? y master r x ?1s? n return to initialization sequence (figure 14) for next transaction b4h read power supply ? y n parasite powered ? n master r x ?1s? master r x ?0s? y master t x t h byte to scratch pad y n 4eh w rite scratchpad ? master t x t l byte to scratchpad y n y beh read scratchpad ? have 8 bytes been re ad ? n master t x reset ? master r x data byte from scratchpad n y master r x scratchpad crc byte mas ter r x ?1s? y n b8h recall e 2 ? master begins data recall from e 2 prom device busy recalling data ? n y master r x ?0s?
ds18s20 18 of 23 ds18s20 operation example 1 in this example there are multip le ds18s20s on the bus and they are using parasite power. the bus master initiates a temperature conversion in a specific ds18s20 and then reads its scratchpad and recalculates the crc to verify the data. master mode data (lsb first) comments tx reset m aster issues reset pulse. rx presence ds18s20s respond with presence pulse. tx 55h master issues match rom command. tx 64 - bit rom code master sends ds18s20 rom code. tx 44h master issues convert t command. tx dq line held high by strong pullup master applies strong pullup to dq for the duration of the conversion (t conv ). tx reset master issues reset pulse. rx presence ds18s20s respond with presence pulse. tx 55h master issues match rom command. tx 64 - bit rom code master sends ds18s20 rom code. tx beh master issues read scratchpad command. rx 9 data bytes master reads entire scratchpad including crc. the master then recalculates the crc of the first eight data bytes from the scratchpad and compares the calculated crc with the read crc (byte 9). if they match, the master continues; if not, the read operation is repeated. ds18s20 operation example 2 in this example there is only one ds18s20 on the bus and it is using parasite power. the master writes to the t h and t l registers in the ds18s20 scratch pad and then reads the scratchpad and recalculates the crc to verify the data. the master then copies the scratchpad contents to eeprom. master mode data (lsb first) comments tx reset master issues reset pulse. rx presence ds18s20 responds with presenc e pulse. tx cch master issues skip rom command. tx 4eh master issues write scratchpad command. tx 2 data bytes master sends two data bytes to scratchpad (t h and t l ) tx reset master issues reset pulse. rx presence ds18s20 responds with presence pulse. tx cch master issues skip rom command. tx beh master issues read scratchpad command. rx 9 data bytes master reads entire scratchpad including crc. the master then recalculates the crc of the first eight data bytes from the scratchpad and compares the ca lculated crc with the read crc (byte 9). if they match, the master continues; if not, the read operation is repeated. tx reset master issues reset pulse. rx presence ds18s20 responds with presence pulse. tx cch master issues skip rom command. tx 48h ma ster issues copy scratchpad command. tx dq line held high by strong pullup master applies strong pullup to dq for at least 10ms while copy operation is in progress.
ds18s20 19 of 23 ds18s20 operation example 3 in this example there is only one ds18s20 on the bus and it is using parasite power. the bus master initiates a temperature conversion then reads the ds18s20 scratchpad and calculates a higher resolution result using the data from the temperature, count remain and count per c registers. master mode data (lsb firs t) comments tx reset master issues reset pulse. tx presence ds18s20 responds with presence pulse. tx cch master issues skip rom command. tx 44h master issues convert t command. tx dq line held high by strong pullup master applies strong pullup to dq f or the duration of the conversion (t conv ). tx reset master issues reset pulse. rx presence ds18s20 responds with presence pulse. tx cch master issues skip rom command. tx beh master issues read scratchpad command. rx 9 data bytes master reads entire s cratchpad including crc. the master then recalculates the crc of the first eight data bytes from the scratchpad and compares the calculated crc with the read crc (byte 9). if they match, the master continues; if not, the read operation is repeated. the mas ter also calculates the temp_read value and stores the contents of the count remain and count per c registers. tx reset master issues reset pulse. rx presence ds18s20 responds with presence pulse. ? ? cpu calculates extended resolution temperature usin g the equation in the operation ? measuring temperature section.
ds18s20 20 of 23 absolute maximum ratings voltage range on any pin relative to ground ........................................................................................ - 0.5v to +6.0v continuous power dissipation (t a = +70 c) 8- pin so (derate 5.9mw/ c above +70 c) .......................................................................................... 470.6 mw 3- pin to -9 2 (derate 6.3mw/ c above +70 c)..................................................................................... 500mw operating temperature range ................................................................................................................ -55 c to +125 c storage temperature range .................................................................................................................... -55 c to +125 c lead temperature (soldering, 10s) .......................................................................................................... +260 c solder ing temperature (reflow) lead(pb) - free ..................................................................................................................................... . +260 c containing lead(pb) ............................................................................................................................ +240 c these are stress ratings only and functional operation of the device at these or any other conditions above those indicated i n the operation sections of this specification is not im plied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. dc electrical characteristics (v dd = 3.0v to 5.5v , t a = - 55c to +125c, unless otherwise noted. ) parameter symbol conditions min typ max units notes supply voltage v dd local power +3.0 +5.5 v 1 pullup supply voltage v pu parasite power +3.0 +5.5 v 1, 2 local power +3.0 v dd thermometer error t err - 10c to +85c 0.5 c 3 - 55c to +125c 2 input logic - low v il - 0.3 +0.8 v 1, 4, 5 input logic - high v ih local power +2.2 the lower of 5.5 or v dd + 0.3 v 1, 6 parasite power +3.0 sink current i l v i/o = 0.4v 4.0 ma 1 standby current i dds 750 1000 na 7, 8 active current i dd v dd = 5v 1 1.5 ma 9 dq input current i dq 5 a 10 drift 0.2 c 11 notes: 1) all voltages are referenced to ground. 2) the pullup supply voltage specification assumes that the pullup device is ideal, and therefore the high level of the pullup is equal to v pu . in order to mee t the v ih spec of the ds18s20, the actual supply rail for the strong pullup transistor must include margin for the voltage drop across the transistor when it is turned on; thus: v pu_actual = v pu_ideal + v transistor . 3) see typical performance curve in figure 16 . 4) logic - low voltages are specified at a sink current of 4ma. 5) to guarantee a presence pulse under low voltage parasite power conditions, v ilmax may have to be reduced to as low as 0.5v. 6) logic - high voltages are specified at a so urce current of 1ma. 7) standby current specified up to +70 c. standby current typically is 3 a at +125 c. 8) to minimize i dds , dq should be within the following ranges: gnd dq gnd + 0.3v or v dd ? 0.3v dq v dd . 9) active current refers to supply current during active temperature conversions or eeprom writes. 10) dq line is high (?high - z? state) . 11) drift data is based on a 1000 - hour stress test at +125 c with v dd = 5.5v.
ds18s20 21 of 23 ac electrical characteristics ? nv memory ( v dd = 3.0v to 5.5v , t a = - 55c to +100c, unless otherwise noted. ) parameter symbol condition s min typ max units nv write cycle time t wr 2 10 ms eeprom writes n eewr - 55c to +55c 50k writes eeprom data retention t eedr - 55c to +55c 10 years ac electrical characteristics ( v dd = 3.0v to 5.5v ; t a = - 55c to +125c, unless otherwise noted. ) parameter symbol conditions min typ max units notes temperature conversion time t conv 750 ms 1 time to strong pullup on t spon start convert t command issued 10 s time slot t slot 60 120 s 1 recovery time t rec 1 s 1 write 0 low time t low0 60 120 s 1 write 1 low time t low1 1 15 s 1 read data valid t rdv 15 s 1 reset time high t rsth 480 s 1 reset time low t rstl 480 s 1, 2 presence - detect high t pdhigh 15 60 s 1 presence - detect low t pdlow 60 240 s 1 capacitance c in/out 25 pf notes: 1) see the timing diagrams in figure 17. 2) under parasite power, if t rstl > 960 s, a power - on reset may occur. figure 16 . typical performanc e curve ds18s20 typical error curve -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0 10 20 30 40 50 60 70 temperature (c) mean error +3s error -3s error
ds18s20 22 of 23 figure 17. timing diagrams package information for the latest package outline information and land patterns, go to www.maxim - ic.com/packages . note that a ?+?, ?#?, or ? - ? in the package code indicates rohs status only. package drawings may show a different suffix character, but the drawing pertains to the package regardless of rohs status. package type package code outline no. land pattern no. 8 so s8 - 2 21 - 0041 90 - 0096 3 to - 92 ( straight leads ) q3 - 1 21- 0248 ? 3 to - 92 (formed leads) q3 - 4 21- 0250 ?
ds18s20 23 of 23 maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a maxim product. no circuit patent licenses are implied. maxim reserves the right to change the circuitry and specifications without notice at any time. maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408 - 737 - 7600 ? 20 10 maxim integrated products maxim i s a registered trademark of maxim integrated products, inc. revision history revision date description pages changed 042208 in the ordering information table, added to - 92 straight - lead packages and included a note that the to - 92 package in tape and reel ca n be ordered with either formed or straight leads 2 8/10 removed the top mark column from the ordering informatio n table; added the continuous power dissipation and lead and soldering temperatures to the absolute maximum ratings section 2, 20


▲Up To Search▲   

 
Price & Availability of DS18S20-SLTAMPR

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X